﻿using Basic.FlowModel.DB;
using Basic.FlowRemoteModel.NodeEvent.Model;

namespace Basic.FlowCollect
{
    public interface INodeEventCollect
    {
        void Clear ( long flowId );
        void Clear ( long flowId, long nodeId );
        DBFlowNodeEvent Get ( long id );
        Result[] GetsByNode<Result> ( long nodeId ) where Result : class, new();
        Result[] Gets<Result> ( long flowId ) where Result : class, new();
        bool Set ( NodeEventSet data );
        void Delete ( DBFlowNodeEvent sour );
    }
}